﻿@{
    ViewBag.Title = "装车配载管理";
}


<div style="width: 100%;">
    <div class="mini-toolbar" style="border-bottom: 0; padding: 0px;">
        <table style="width: 100%;">
            <tr>
                <td style="width: 100%;">
                    <a class="mini-button" iconcls="icon-add" plain="true" onclick="addMain()">装车配载录入</a>
                    <a class="mini-button" iconcls="icon-add" plain="true" onclick="addSecond()">运费|杂费录入</a>
                    <a class="mini-button" iconcls="icon-remove" plain="true" onclick="removeRow()">删除</a>
                    <a class="mini-button" iconcls="icon-save" plain="true" onclick="saveData()">保存</a>
                    <a class="mini-button" iconcls="icon-print" plain="true">打印</a>
                    <a class="mini-button" iconcls="icon-edit" plain="true" onclick="editData()">编辑</a>

                </td>
                <td style="white-space: nowrap;">
                    <input id="key" class="mini-textbox" emptytext="请输入关键字" style="width: 250px;" onenter="onKeyEnter" />
                    <a class="mini-button" plain="true" onclick="search()">查询</a>
                </td>
            </tr>
        </table>
    </div>
</div>


<div class="mini-fit" style="height: 100%;">

    <div id="datagrid1" class="mini-datagrid" style="width: 100%; height: 100%;"
        idfield="id" pagesize="20"
        allowcelledit="true" allowcellselect="true" multiselect="true"
        editnextonenterkey="true" editnextrowcell="true">
        <div property="columns">
            <div type="indexcolumn"></div>
            <div type="checkcolumn"></div>
            <div field="DID" visible="false"></div>
            <div field="DKey" width="90px" vtype="required">
                装车配载编号
                <input property="editor" class="mini-textbox" style="width: 100%;" minwidth="200" />
            </div>
            <div field="DValue" width="80px" vtype="required">
                车辆到站
                <input property="editor" class="mini-textbox" style="width: 100%;" minwidth="200" />
            </div>
            <div field="DBit" width="80px">
                中转站
            </div>
            <div field="DBit" width="100px">
                公司
            </div>
            <div field="DType" width="90px" vtype="required">
                车牌号
                <input property="editor" class="mini-textbox" style="width: 100%;" />
            </div>
            <div field="DNote" width="90px">
                司机
                <input property="editor" class="mini-textarea" style="width: 200px;" minheight="60" />
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">

    mini.parse();

    var grid = mini.get("datagrid1");


    function addMain() {
        mini.open({
            url: "/GoodsOrderMgr/UploadOrder/AddMain",
            title: "装车配载录入",
            width: "1000px",
            height: "95%",
            // showMaxButton: true,
            allowResize: false,
            allowDrag: true,
            ondestroy: function () { }
        });
    }

    function addSecond() {
        mini.open({
            url: "/GoodsOrderMgr/UploadOrder/AddSecond",
            title: "装车配载运费、杂费录入",
            width: "1000px",
            height: "95%",
            //showMaxButton: true,
            allowResize: false,
            allowDrag: true,
            ondestroy: function () { }
        });
    }



</script>
